﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
	xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
	mc:Ignorable="d"
	x:Class="AzukiMapUI.LayerSelectDialog"
	d:DesignWidth="800" d:DesignHeight="400" xmlns:AzukiMapUI="clr-namespace:AzukiMapUI">

	<Grid x:Name="LayoutRoot">
		<Grid Margin="0,0,0,0">
            <AzukiMapUI:PopupWindow x:Name="WndLayerSelect" CanResize="False" Title="Select a layer" Status="window status here" IsModal="True" ShowStatus="False" Height="515">
                <Grid>
                    <vsm:VisualStateManager.VisualStateGroups>
                        <vsm:VisualStateGroup x:Name="VisualStateGroup"/>
                    </vsm:VisualStateManager.VisualStateGroups>
                    <basics:TabControl x:Name="TcDataType" Margin="8,8,8,41" SelectionChanged="TcDataType_SelectionChanged">
                        <basics:TabControl.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFFFFFF"/>
                                <GradientStop Color="#FFFEFEFE" Offset="1"/>
                            </LinearGradientBrush>
                        </basics:TabControl.Background>

                        <!-- vector tab -->
                        <basics:TabItem Header="Vector" Name="Vector">
                            <Grid>
                                <ComboBox x:Name="CbVectorDataType" SelectionChanged="CbVectorDataType_SelectionChanged" Height="25" Margin="8,8,8,0" VerticalAlignment="Top" SelectedIndex="0">
                                    <TextBlock Text="PostGIS Table"/>
                                </ComboBox>
                                <AzukiMapUI:PostGISTableProperties x:Name="PropPostGISTable" Margin="8,40,8,24" BorderThickness="0.5,0.5,0.5,0.5" BorderBrush="#FF000000"/>
                            </Grid>
                        </basics:TabItem>

                        <!-- raster tab -->
                        <basics:TabItem Header="Raster" Name="Raster">
                            <Grid>
                                <ComboBox Height="25" x:Name="CbRasterDataType" SelectionChanged="CbRasterDataType_SelectionChanged" Margin="8,8,8,0" VerticalAlignment="Top" SelectedIndex="0" >
                                    <TextBlock Text="WMS Server"/>
                                    <!--
                                    <TextBlock Text="Image File"/>
                                    -->
                                </ComboBox>

                                <AzukiMapUI:WMSLayerProperties x:Name="PropWMSLayer" Margin="8,40,8,24" BorderThickness="0.5,0.5,0.5,0.5" BorderBrush="#FF000000"/>
                                <!--
                                <AzukiMapUI:ImageSourceProperties x:Name="PropImageSource" Margin="8,40,8,8" IsEnabled="True" Visibility="Collapsed" BorderBrush="#FF000000" BorderThickness="0.5,0.5,0.5,0.5"/>
                                -->
                            </Grid>
                        </basics:TabItem>
                        <basics:TabItem Header="Tile" Name="Tile">
                            <Grid>
                                <ComboBox x:Name="CbTileDataType" SelectionChanged="CbTileDataType_SelectionChanged" Height="25" Margin="8,8,8,0" VerticalAlignment="Top" d:IsStaticText="True" SelectedIndex="0">
                                    <TextBlock Text="KaMap Tile"/>
                                    <TextBlock Text="VirtualEarth Tile"/>
                                    <!--
                                    <TextBlock Text="GoogleMap Tile"/>
                                    -->
                                </ComboBox>
                                <AzukiMapUI:KaMapProperties x:Name="PropKaMapTile" Margin="8,40,8,24" BorderThickness="0.5,0.5,0.5,0.5" BorderBrush="#FF000000" Visibility="Visible"/>
                                <AzukiMapUI:VirtualEarthProperties x:Name="PropVirtualEarthTile" Margin="8,40,8,24" BorderThickness="0.5,0.5,0.5,0.5" BorderBrush="#FF000000" Visibility="Collapsed"/>
                                <!--
                                <AzukiMapUI:GoogleMapProperties x:Name="PropGoogleMapTile" Margin="8,40,8,24" BorderThickness="0.5,0.5,0.5,0.5" BorderBrush="#FF000000" Visibility="Collapsed"/>
                                -->
                            </Grid>
                        </basics:TabItem>
                        <!--
                        <basics:TabItem Header="Presets" Name="Presets">
                            <Grid>
                                <ListBox Margin="8,8,8,8" Width="600" Height="480"/>
                            </Grid>
                        </basics:TabItem>
                        -->
                    </basics:TabControl>
                    <Button x:Name="BtnCancel" Click="BtnCancel_Click" Height="24" HorizontalAlignment="Right" Margin="0,0,104,8" VerticalAlignment="Bottom" Width="92" Content="Cancel"/>
                    <Button x:Name="BtnOk" Click="BtnOk_Click" Height="24" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="92" Content="OK"/>

                </Grid>
            </AzukiMapUI:PopupWindow>
        </Grid>
            
	</Grid>
</UserControl>